import time

from base.utils.NumberUtil import NumberUtil


class TimeUtil:
    @staticmethod
    def short_sleep(num=1):
        time.sleep(NumberUtil.random_decimal(0.5, 1, 1) * num)

    @staticmethod
    def middle_sleep(num=1):
        time.sleep(NumberUtil.random_decimal(1, 2, 1) * num)

    @staticmethod
    def large_sleep(num=None):
        if not num:
            num = 1
        time.sleep(NumberUtil.random_decimal(2, 5, 1) * num)


if __name__ == '__main__':
    TimeUtil.short_sleep()
